home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _EB103206BD874929A90C47723C8DD234 < prev    next >
Encoding:
Text File  |  2004-06-16  |  1.4 KB  |  63 lines

  1.  
  2. shader()
  3. {// >=gf3
  4.     SurfaceID(SRFTYPE)
  5.     NoLightmaps()
  6.     Shaderquality(1)
  7.     pass()
  8.     {
  9.         Pixelshader("InShadow.psh")
  10.  
  11.         !include("__Tex1.mtt")
  12.         !include("__FadeGen.mtt")
  13.     }
  14.  
  15.     lightpass()
  16.     !include("Spot1Tex.mtt")
  17.     Cull("cw")
  18. }
  19.  
  20.  
  21. shader()
  22. {//gf2
  23.     SurfaceID(SRFTYPE)
  24.     NoLightmaps()
  25.     pass()
  26.     {
  27.         Lighting()
  28.         tmu()
  29.         {
  30.             TexGen("planar")
  31.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  32.             texture()
  33.             {
  34.                 Image(%colortexture)
  35.                 addressfunc("clamp", "clamp", "clamp")
  36.             }
  37.             ColorOp("mul", "texture", "tfactor", "current")     //texture * lighting
  38.         }
  39.         tmu()
  40.         {
  41.             texture()
  42.             {
  43.                 Mapchannel(0)
  44.                 Image(TEXTURE1)
  45.                 !include(TEX1OPTIONSFILE)
  46.             }
  47.             ColorOp("mul", "texture", "current", "current")     //texture * lighting
  48.             AlphaOp("arg2", "texture", "diffuse", "current")    //fadeblending
  49.         }
  50.  
  51.         Tfactor(%daycolor_a, %daycolor_a, %daycolor_a, %daycolor_a)
  52.  
  53.         !include("__FadeGenDayColorGF2.mtt")
  54.  
  55.         !include("__LightningColorsGF2.mtt")
  56.  
  57.     }
  58.     lightpass()
  59.     !include("spot_spotmap.mtt")
  60.     Cull("cw")
  61. }
  62.  
  63.